{# Render a thumbnail and omit the alt attribute explicitly by passing "false" #}
{% sw_thumbnails 'no-alt-attr' with {
    media: media,
    attributes: {
        alt: false
    }
} %}